package com.itheima.xiancheng;


import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        for (int i = 0; i < 100; i++) {
            String name = Thread.currentThread().getName();
            System.out.println(name +"线程开启第"+i);
        }
        return "完成";
    }
}
